package com.drawquest.data;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * @author sad
 */
public class Comments {

    private List<Comment> comments = new ArrayList<>();
    
    public void addComment(Comment comment) {
        comments.add(comment);
    }

    public int getSize() {
        return comments.size();
    }

    public Comment getComment(int i) {
        return comments.get(i);
    }
    
    public void sort(){
        Collections.sort(comments);
    }
}